package com.develop.alarm.service.impl;

import com.develop.alarm.dao.RealtimealarmDao;
import com.develop.alarm.domain.RealtimealarmDO;
import com.develop.alarm.service.RealtimealarmService;
import com.develop.common.utils.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class RealtimealarmServiceImpl implements RealtimealarmService {
	@Autowired
	private RealtimealarmDao realtimealarmDao;
	
	@Override
	public RealtimealarmDO get(Long alarmseq){
		return realtimealarmDao.get(alarmseq);
	}
	
	@Override
	public List<RealtimealarmDO> list(Map<String, Object> map){
		return realtimealarmDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return realtimealarmDao.count(map);
	}
	
	@Override
	public int save(RealtimealarmDO realtimealarm){
		return realtimealarmDao.save(realtimealarm);
	}
	
	@Override
	public int update(RealtimealarmDO realtimealarm){
		return realtimealarmDao.update(realtimealarm);
	}
	
	@Override
	public int remove(Long alarmseq){
		return realtimealarmDao.remove(alarmseq);
	}
	
	@Override
	public int batchRemove(Long[] alarmseqs){
		return realtimealarmDao.batchRemove(alarmseqs);
	}

	@Override
	public List<RealtimealarmDO> activeList(Query query) {
		return realtimealarmDao.activeList(query);
	}

	@Override
	public int activeCount(Query query) {
		return realtimealarmDao.activeCount(query);
	}

}
